//
//  ViewController.m
//  创建类
//
//  Created by sir li on 2020/3/20.
//  Copyright © 2020 sir li. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.persion=[[Persion alloc]init];
    self.persion.name=@"xiaoming";
    self.persion.age=12;
    self.persion.sex=1;
    
    Persion *persion1=[[Persion alloc]init];
    persion1.name=@"xiaofang";
    persion1.age=13;
    persion1.sex=2;
    
    NSMutableArray *array=[[NSMutableArray alloc]init];
    [array addObject:self.persion];
    [array addObject:persion1];
}


@end
